package com.aispeech.asr.apis.ssc.data.domain;

import com.aispeech.asr.comm.enums.EAudioType;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class AudioInfo {
    private String workDir;
    private String orignAudio;
    private EAudioType audioType;
    private int sampleRate;
    private int sampleBytes;
    private int channel;

    public AudioInfo(EAudioType audioType, String sessionId, int sampleRate, int channel, int sampleBytes) {
        this.audioType = audioType;
        this.sampleRate = sampleRate;
        this.sampleBytes = sampleBytes;
        this.channel = channel;

        workDir = "/audios/task_" + sessionId;
        orignAudio = workDir + "/origin." + audioType.key();

    }
    
}
